<!--
  Generated template for the TodayStrategyPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-navbar color="gm-primary">
    <ion-title>今日策略</ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-refresher (ionRefresh)="onRefresh($event)">
    <ion-refresher-content
        pullingIcon="arrow-dropdown"
        pullingText="下拉开始刷新"
        refreshingSpinner="circles"
        refreshingText="数据正在载入">
    </ion-refresher-content>
  </ion-refresher>

  <ion-list *ngIf="strategy_list.length > 0">
    <div class="strategy-item" *ngFor="let strategy of strategy_list" (click)="onItemSelected(0, strategy)">
      <div class="date">
        <ion-icon name="ios-calendar-outline"></ion-icon>
        &nbsp;{{strategy.created_at | dateformat}}
      </div>
      <div class="summary">{{strategy.content}}</div>
    </div>
  </ion-list>

  <div *ngIf="strategy_list.length == 0" class="no-data">
    <img src="assets/icon/empty.png">
    <div>今日还没有策略</div>
  </div>
</ion-content>
